//
//  ProsecutorCell.m
//  KuWoCan
//
//  Created by hwd on 17/3/15.
//  Copyright © 2017年 hwd. All rights reserved.
//

#import "ProsecutorCell.h"

@implementation ProsecutorCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])
    {
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI
{
    UILabel *prosecutorLab = [UILabel new];
    prosecutorLab.textColor = [UIColor grayColor];
    prosecutorLab.font = [UIFont systemFontOfSize:14.0];
    prosecutorLab.textAlignment = NSTextAlignmentLeft;
    prosecutorLab.text = @"审批人员:   李经理, 13554849565";
    [self addSubview:prosecutorLab];
    [prosecutorLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@20);
        make.top.equalTo(@15);
        make.height.equalTo(@14);
    }];
    
    UILabel *oStatusLab = [UILabel new];
    oStatusLab.textColor = [UIColor grayColor];
    oStatusLab.font = [UIFont systemFontOfSize:14];
    oStatusLab.textAlignment = NSTextAlignmentRight;
    oStatusLab.text = @"审批时间:";
    [self addSubview:oStatusLab];
    [oStatusLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(prosecutorLab.mas_left);
        make.top.equalTo(prosecutorLab.mas_bottom).offset(10);
        make.height.equalTo(@14);
        make.bottom.equalTo(@-15);
    }];
    
    UILabel *oTimeParaLab = [UILabel new];
    oTimeParaLab.textColor = [UIColor grayColor];
    oTimeParaLab.font = [UIFont systemFontOfSize:14.0];
    oTimeParaLab.textAlignment = NSTextAlignmentLeft;
    oTimeParaLab.text = @"2017-02-24 14:20";
    [self addSubview:oTimeParaLab];
    [oTimeParaLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(oStatusLab.mas_right).offset(10);
        make.top.equalTo(oStatusLab.mas_top);
        make.bottom.equalTo(oStatusLab.mas_bottom);
    }];
}

@end
